<template>
    <div>
        <div class="body">
            <router-view></router-view>
        </div>
        <div class="tab_bottom">
            <ul>
                <router-link to="/Index" tag="li" active-class="active">
                    <span>
                        <van-icon name="column"/>
<!--                        <van-icon name="column" v-else />-->
                        <div  >Bang!</div>
<!--                        <div v-else>Bang!</div>-->
                    </span>
                </router-link>
                <!-- 音乐               -->
                <router-link tag="li" to="/Music" active-class="active">
                    <span>
                        <van-icon name="music" />
<!--                        <van-icon name="music" v-else />-->
                        <div >音乐</div>
<!--                         <div v-else>音乐</div>-->
                    </span>
                </router-link>
                <!--我的                -->
                <router-link v-show="islogin" tag="li" to="/my" active-class="active">
                    <span>
                        <van-icon name="manager"/>
<!--                        <van-icon name="manager" v-else />-->
                        <div >我的</div>
<!--                        <div v-else>我的</div>-->
                    </span>
                </router-link>

                <router-link v-show="!islogin" tag="li" to="/login" active-class="active">
                    <span>
                        <van-icon name="manager"/>
<!--                        <van-icon name="manager" v-else />-->
                        <div>我的</div>
<!--                        <div v-else>我的</div>-->
                    </span>
                </router-link>
            </ul>
        </div>
    </div>
</template>

<script>
    import {mapState} from 'vuex'
    export default {
        name: "IndexLayout",
        computed:{
            ...mapState({
                islogin:'islogin',
                // bangFlag:'bangFlag',
                // musicFlag:'musicFlag',
                // myFlag:'myFlag'
            })
        },
    }
</script>

<style scoped lang="less">
    .tab_bottom{
        ul{
            width: 100%;
            position: fixed;
            bottom: 0;
            left: 0;
            display: flex;
            justify-content: space-between;
            height: 50px;
            line-height: 20px;
            background-color: #F9F9F9;
            padding: 5px 0;
text-align: center;
            li{
                width: 33%;
                color: #333333;
            }
        }
    }
    .active{
        color:#FD7304;
    background-color: #FD7304;
    border-radius: 5px;

    }
    /*.abc{*/
    /*    color: red;*/
    /*}*/
</style>